package com.starlink.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.starlink.client.jd.vo.PrintPullDataVO;
import com.starlink.common.annotation.client.weixin.UserPurchaseRes;
import com.starlink.model.request.SchoolbagOrderJdRequest;
import com.starlink.model.request.SchoolbagRecoveryCheckRequest;
import com.starlink.model.request.SchoolbagRecoveryRequest;
import com.starlink.model.request.schoolbag.SchoolbagOrderSubmitRequest;
import com.starlink.model.vo.SchoolbagRecoveryCheckVO;
import com.starlink.model.vo.SchoolbagRecoveryVO;
import org.springframework.data.domain.Pageable;
import com.starlink.model.domain.SchoolbagOrderDO;
import com.starlink.model.request.SchoolbagOrderRequest;
import com.starlink.model.vo.SchoolbagOrderVO;

import java.util.List;

/**
 * @author zhanghong
 */
public interface SchoolbagOrderService extends IService<SchoolbagOrderDO> {


    /**
     * 根据主键查询
     * @param id
     * @return
     */
    SchoolbagOrderVO getByKey(long id);
    /**
     * 分页查询，手动分页
     * @param request
     * @return
     */
    PageInfo<SchoolbagOrderVO> pageQuery(Pageable pageable,SchoolbagOrderRequest request);
    /**
     * 列表查询
     * @param request
     * @return
     */
    List<SchoolbagOrderVO> listQuery(SchoolbagOrderRequest request);
    /**
     * 新增
     * @param request
     * @return
     */
    Boolean add(SchoolbagOrderRequest request);
    /**
     * 根据主键更新
     * @param request
     * @return
     */
    Boolean updateByKey(SchoolbagOrderRequest request);
    /**
     * 根据主键更新
     * @param request
     * @return
     */
    Boolean cancelOrder(SchoolbagOrderRequest request);
    /**
     * 根据主键删除
     * @param ids
     * @return
     */
    Boolean deleteDOByIds(String ids);

    UserPurchaseRes payment(SchoolbagOrderSubmitRequest request);

    Boolean joinGroup(Long schoolbagOrderId);

    Boolean deliverySubmitJdOrder(SchoolbagOrderJdRequest request);

    Boolean recoverySubmitJdOrder(SchoolbagOrderJdRequest request);

    PrintPullDataVO getPrintData(SchoolbagOrderJdRequest request);

    @Deprecated
    SchoolbagRecoveryVO getOrderInfoByRasId(SchoolbagRecoveryRequest request);
    SchoolbagRecoveryVO getWaitDeliveryOrderInfoByRasId(SchoolbagRecoveryRequest request);
    SchoolbagRecoveryVO getWaitCollectOrderInfoByRasId(SchoolbagRecoveryRequest request);

    SchoolbagRecoveryCheckVO recoveryCheck(SchoolbagRecoveryCheckRequest request);
}
